package cn.airfei.aircore.core.storage.Pojo;

import cn.airfei.aircore.core.storage.bo.TokenBo;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @description:
 * @author: air
 * @create: 2020-11-06 11:56
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class LogForMongoDbPojo extends TokenBo implements Serializable {
    private String traceId;
    // 单个请求id
    private String requestId;

    private LocalDateTime createTime;

    private String url;
    // 接口执行时间
    private String executeTime;
    private String method;
    // 传参信息
    private Object params;
    // 返回结果,包含异常结果信息
    private Object result;
    // 应用id
    private String appId;
    // 备注信息
    private String remark;
    // 返回状态码
    private Integer errCode;
    // 异常信息
    private String errMsg;
    // token 信息
    private String token;
    // 认证信息,本系统请求头默认只兼容token和authorization字段,其他字段默认不接收
    private String authorization;
    // 请求头信息
    private String headers;
    // code
    private String code;


}
